clothes-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <template>
  2. <!-- 装箱单-成衣 -->
  3. <div id="clothesList">
  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="6" :sm="8">
  10. <a-form-item label="单据号">
  11. <a-input placeholder="请输入订单号" v-model="queryParam.documentNo"></a-input>
  12. </a-form-item>
  13. </a-col> -->
  14. <a-col :md="6" :sm="8">
  15. <a-form-item label="订单号">
  16. <a-input placeholder="请输入订单号" v-model="queryParam.orderNumber"></a-input>
  17. </a-form-item>
  18. </a-col>
  19. <a-col :md="6" :sm="8">
  20. <a-form-item label="款号">
  21. <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>
  22. </a-form-item>
  23. </a-col>
  24. <a-col :md="6" :sm="8">
  25. <a-form-item label="分销点">
  26. <a-input placeholder="请输入分销点" v-model="queryParam.distributionPoint"></a-input>
  27. </a-form-item>
  28. </a-col>
  29. <template v-if="toggleSearchStatus">
  30. <!-- <a-col :md="6" :sm="8">
  31. <a-form-item label="托书号">
  32. <a-input placeholder="请输入托书号" v-model="queryParam.shippingOrderNumber"></a-input>
  33. </a-form-item>
  34. </a-col> -->
  35. <!-- <a-col :md="6" :sm="8">
  36. <a-form-item label="品名">
  37. <a-input placeholder="请输入品名" v-model="queryParam.productName"></a-input>
  38. </a-form-item>
  39. </a-col> -->
  40. <a-col :md="6" :sm="8">
  41. <a-form-item label="小po">
  42. <a-input placeholder="请输入小po" v-model="queryParam.smallPo"></a-input>
  43. </a-form-item>
  44. </a-col>
  45. <a-col :md="6" :sm="8">
  46. <a-form-item label="预托书号">
  47. <a-input placeholder="请输入预托书号" v-model="queryParam.depositaryReceiptNo"></a-input>
  48. </a-form-item>
  49. </a-col>
  50. <a-col :md="6" :sm="8">
  51. <a-form-item label="供应商">
  52. <a-input placeholder="请输入供应商" v-model="queryParam.garmentFactory"></a-input>
  53. </a-form-item>
  54. </a-col>
  55. <a-col :md="6" :sm="8">
  56. <a-form-item label="预发货日期">
  57. <a-range-picker
  58. :placeholder="['开始时间', '结束时间']"
  59. format="YYYY-MM-DD"
  60. style="width: 100%"
  61. v-model="preDeliveryDate"
  62. @change="onDateChange"
  63. />
  64. </a-form-item>
  65. </a-col>
  66. </template>
  67. <a-col :md="6" :sm="8">
  68. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  69. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  70. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  71. <a @click="handleToggleSearch" style="margin-left: 8px">
  72. {{ toggleSearchStatus ? '收起' : '展开' }}
  73. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  74. </a>
  75. </span>
  76. </a-col>
  77. </a-row>
  78. </a-form>
  79. </div>
  80. </a-card>
  81. <!-- 操作按钮区域 推送 导入 新增-->
  82. <a-card :bordered="false" style="marginTop:10px;">
  83. <div class="table-operator">
  84. <a-button type="primary" @click="openClothesAdd" icon="plus">新增</a-button>
  85. <a-button type="primary" @click="push" icon="export">推送</a-button>
  86. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel" >
  87. <a-button type="primary" icon="import">导入</a-button>
  88. </a-upload>
  89. </div>
  90. <!-- table rowKey="id"-->
  91. <a-table
  92. bordered
  93. :columns="clothesListColumns"
  94. :data-source="clothesListData"
  95. :loading="loading"
  96. :pagination="pagination"
  97. :row-key="record => record.id"
  98. :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
  99. @change="handleTableChange"
  100. :scroll="{ x: 1500, y: 500 }"
  101. >
  102. <!-- 集装箱号 输入框-->
  103. <!-- <a-form-model
  104. slot="containerNo"
  105. slot-scope="text, record"
  106. :ref="record.index"
  107. :model="record"
  108. style="width:100%;height:40px"
  109. >
  110. <a-form-model-item prop="containerNo">
  111. <a-input style="width:100%" v-model="record.containerNo" />
  112. </a-form-model-item>
  113. </a-form-model> -->
  114. <!-- 预托书号 -->
  115. <!-- <a-form-model
  116. slot="preBookNum"
  117. slot-scope="text, record"
  118. :ref="record.index"
  119. :model="record"
  120. style="width:100%;height:40px"
  121. >
  122. <a-form-model-item prop="preBookNum">
  123. <a-input style="width:100%" v-model="record.preBookNum" readOnly/>
  124. </a-form-model-item>
  125. </a-form-model> -->
  126. <!-- 状态 -->
  127. <!-- slot-scope="text, record" -->
  128. <span slot="stateSlot" slot-scope="text, record">
  129. <!-- v-if="record.isRelease == '0'" -->
  130. <a-tag color="orange" v-if="record.status == '0' || record.status == null">未提交</a-tag>
  131. <a-tag color="green" v-if="record.status == '1'">已提交</a-tag>
  132. <!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
  133. </span>
  134. <!-- 推送状态 -->
  135. <span slot="pushState" slot-scope="text, record" :title ="record.cause">
  136. <!-- v-if="record.isRelease == '0'" -->
  137. <a-tag color="#f50" :title="record.cause">保存</a-tag>
  138. <!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
  139. </span>
  140. <!-- 单据状态 -->
  141. <!-- <span slot="documentState"> -->
  142. <!-- v-if="record.isRelease == '0'" -->
  143. <!-- <a-tag color="#f50">提交</a-tag> -->
  144. <!-- <a-tag color="#87d068" v-else>已提交</a-tag> -->
  145. <!-- </span> -->
  146. <!-- 操作 -->
  147. <span slot="operationSlot" slot-scope="text, record">
  148. <a @click="accessoryUpload(record)" style="color:green;">附件上传</a>
  149. <a-divider type="vertical" />
  150. <!-- 未提交 -->
  151. <a-dropdown>
  152. <a class="ant-dropdown-link">更多<a-icon type="down"/></a>
  153. <a-menu slot="overlay" v-if="record.status == '0' || record.status == null">
  154. <a-menu-item><a @click="submit(record)">提交</a></a-menu-item>
  155. <a-menu-item><a @click="details(record)">详情</a></a-menu-item>
  156. <a-menu-item><a @click="edit(record)">编辑</a></a-menu-item>
  157. <a-menu-item>
  158. <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
  159. <a href="javascript:void(0);" style="color:red;">删除</a>
  160. </a-popconfirm>
  161. </a-menu-item>
  162. </a-menu>
  163. <!-- 已提交 -->
  164. <a-menu slot="overlay" v-if="record.status == '1'">
  165. <a-menu-item>
  166. <a @click="details(record)">详情</a>
  167. </a-menu-item>
  168. <a-menu-item>
  169. <a-popconfirm title="确定取消提交吗?" ok-text="是" cancel-text="否" @confirm="cancelSubmit(record)">
  170. <a href="javascript:void(0);" style="color:red;">取消提交</a>
  171. </a-popconfirm>
  172. </a-menu-item>
  173. <!-- <a-menu-item>
  174. <a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push(record)">
  175. <a href="javascript:void(0);" style="color:green;">推送</a>
  176. </a-popconfirm>
  177. </a-menu-item> -->
  178. </a-menu>
  179. </a-dropdown>
  180. </span>
  181. </a-table>
  182. </a-card>
  183. <!-- 子表 -->
  184. <!-- 抽屉 -->
  185. <div>
  186. <clothesAdd-drawer ref="clothesAddDrawer" :fatherList="getSpltList" @ok="modalFormOk"></clothesAdd-drawer>
  187. <detailsClothes-drawer ref="detailsClothesDrawer" :father="bb" @ok="modalFormOk"></detailsClothes-drawer>
  188. <!-- <editClothes-drawer ref="editClothesDrawer" :father="cc" @ok="modalFormOk"></editClothes-drawer> -->
  189. </div>
  190. </div>
  191. </template>
  192. <script>
  193. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  194. import JEllipsis from '@/components/jeecg/JEllipsis'
  195. import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
  196. import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
  197. import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
  198. import { spltList,deleteSpltList,spltListId,SubmitList,cancelSubmitList} from '@api/document/packing-list/packinglist-clothes'
  199. export default {
  200. name: 'ClothesList', // 装箱单-成衣
  201. mixins: [JeecgListMixin],
  202. components: { JEllipsis, clothesAddDrawer, detailsClothesDrawer, editClothesDrawer },
  203. data() {
  204. let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
  205. return {
  206. // 表头
  207. clothesListColumns: [
  208. {
  209. title: '预托书号',
  210. dataIndex: 'depositaryReceiptNo',
  211. width: 160,
  212. ellipsis: true,
  213. // scopedSlots: { customRender: 'preBookNum' },
  214. className: 'replacecolor'
  215. },
  216. {
  217. title: '托书号',
  218. dataIndex: 'shippingOrderNumber',
  219. width: 120,
  220. ellipsis: true,
  221. className: 'replacecolor'
  222. },
  223. {
  224. title: '集装箱代号',
  225. dataIndex: 'containerCode',
  226. width: 120,
  227. ellipsis: true,
  228. className: 'replacecolor'
  229. },
  230. {
  231. title: '集装箱号',
  232. dataIndex: 'containerNumber',
  233. width: 140,
  234. ellipsis: true,
  235. // scopedSlots: { customRender: 'containerNo' },
  236. className: 'replacecolor'
  237. },
  238. {
  239. title: '单据号',
  240. dataIndex: 'documentNo',
  241. width: 120,
  242. ellipsis: true,
  243. className: 'replacecolor'
  244. },
  245. {
  246. title: '订单号',
  247. dataIndex: 'orderNumber',
  248. width: 220,
  249. ellipsis: true,
  250. // fixed: 'left',
  251. className: 'replacecolor'
  252. },
  253. {
  254. title: '款号',
  255. ellipsis: true,
  256. dataIndex: 'itemNumber',
  257. width: 120,
  258. // fixed: 'left',
  259. className: 'replacecolor'
  260. },
  261. {
  262. title: '客户简称',
  263. dataIndex: 'customerAbbreviation',
  264. width: 120,
  265. ellipsis: true,
  266. // fixed: 'left',
  267. className: 'replacecolor'
  268. },
  269. {
  270. title: '预发货日期',
  271. dataIndex: 'hod',
  272. width: 120,
  273. ellipsis: true,
  274. className: 'replacecolor'
  275. },
  276. {
  277. title: '小po',
  278. dataIndex: 'smallPo',
  279. width: 120,
  280. ellipsis: true,
  281. className: 'replacecolor'
  282. },
  283. {
  284. title: '分销点',
  285. dataIndex: 'distributionPoint',
  286. width: 120,
  287. ellipsis: true,
  288. className: 'replacecolor'
  289. },
  290. {
  291. title: '数量(按合并规则累计)',
  292. dataIndex: 'total',
  293. width: 200,
  294. ellipsis: true,
  295. className: 'replacecolor'
  296. },
  297. {
  298. title: '箱数',
  299. dataIndex: 'totalBoxes',
  300. width: 90,
  301. ellipsis: true,
  302. className: 'replacecolor'
  303. },
  304. {
  305. title: '总净重',
  306. dataIndex: 'totalNetWeight',
  307. width: 120,
  308. ellipsis: true,
  309. className: 'replacecolor'
  310. },
  311. {
  312. title: '总毛重',
  313. dataIndex: 'totalGrossWeight',
  314. width: 120,
  315. ellipsis: true,
  316. className: 'replacecolor'
  317. },
  318. {
  319. title: '总体积',
  320. dataIndex: 'totalVolume',
  321. width: 120,
  322. ellipsis: true,
  323. className: 'replacecolor'
  324. },
  325. // {
  326. // title: '存货名称',
  327. // dataIndex: 'inventoryName',
  328. // width: 120,
  329. // className: 'replacecolor'
  330. // },
  331. // {
  332. // title: '颜色',
  333. // dataIndex: 'colour',
  334. // width: 120,
  335. // className: 'replacecolor'
  336. // },
  337. {
  338. title: '采购/委外订单号',
  339. dataIndex: 'purchase',
  340. width: 160,
  341. ellipsis: true,
  342. className: 'replacecolor'
  343. },
  344. {
  345. title: '成衣工厂',
  346. dataIndex: 'garmentFactory',
  347. width: 140,
  348. ellipsis: true,
  349. customRender: t => ellipsis(t),
  350. className: 'replacecolor'
  351. },
  352. // {
  353. // title: '订单类型',
  354. // dataIndex: 'orderType',
  355. // width: 120,
  356. // className: 'replacecolor'
  357. // },
  358. // {
  359. // title: '工厂单价',
  360. // dataIndex: 'factoryUnitPrice',
  361. // width: 120,
  362. // className: 'replacecolor'
  363. // },
  364. // {
  365. // title: '总价',
  366. // dataIndex: 'totalPrice',
  367. // width: 120,
  368. // className: 'replacecolor'
  369. // },
  370. {
  371. title: '推送状态',
  372. dataIndex: 'pushState',
  373. width: 90,
  374. scopedSlots: { customRender: 'pushState' },
  375. className: 'replacecolor'
  376. },
  377. // {
  378. // title: '单据状态',
  379. // dataIndex: 'theDocumentsState',
  380. // width: 90,
  381. // scopedSlots: { customRender: 'documentState' },
  382. // className: 'replacecolor'
  383. // },
  384. // {
  385. // title: '原因',
  386. // dataIndex: 'cause',
  387. // width: 180,
  388. // customRender: t => ellipsis(t),
  389. // className: 'replacecolor'
  390. // },
  391. {
  392. title: '是否云工厂推送',
  393. dataIndex: 'whetherCloudFactoryPush ',
  394. width: 90,
  395. // scopedSlots: { customRender: 'isPushCloudfactory' },
  396. className: 'replacecolor'
  397. },
  398. {
  399. title: '外销发票号',
  400. dataIndex: 'exportInvoiceNo',
  401. width: 120,
  402. ellipsis: true,
  403. className: 'replacecolor'
  404. },
  405. {
  406. title: '单据状态',
  407. dataIndex: 'status',
  408. width: 80,
  409. fixed: 'right',
  410. scopedSlots: { customRender: 'stateSlot' },
  411. className: 'replacecolor'
  412. },
  413. {
  414. title: '操作',
  415. dataIndex: 'operation',
  416. scopedSlots: { customRender: 'operationSlot' },
  417. width: 160,
  418. fixed: 'right',
  419. className: 'replacecolor'
  420. }
  421. ],
  422. clothesListData: [],
  423. selectedRowKeys: [], // 勾选航
  424. loading: false, // 表格加载
  425. // 查询条件
  426. queryParam: {
  427. pageNo: '' // 初始页
  428. },
  429. preDeliveryDate:[],
  430. pagination: {
  431. // pageSize:20
  432. // total: '',
  433. // current: 0,
  434. // pageSize: 0
  435. },
  436. url: {
  437. // syncUser: '/act/process/extActProcess/doSyncUser',
  438. list: '/sys/user/list',
  439. // delete: '/sys/user/delete',
  440. // deleteBatch: '/sys/user/deleteBatch',
  441. exportXlsUrl: '/sys/user/exportXls', // 导出
  442. importExcelUrl: 'sys/user/importExcel' // 导入
  443. }
  444. }
  445. },
  446. created() {
  447. this.getSpltList()
  448. },
  449. methods: {
  450. //分页查询
  451. getSpltList() {
  452. var that = this;
  453. this.$nextTick(() => {
  454. this.queryParam.pageSize=20
  455. spltList(this.queryParam).then(res => {
  456. if (res.success) {
  457. that.clothesListData = res.result.records;
  458. that.clothesListData.map(item => {
  459. var str =item.hod
  460. var n=str.split(" ");
  461. item.hod = n[0]
  462. })
  463. that.pagination = {
  464. total: res.result.total,
  465. current: res.result.current,
  466. pageSize: res.result.size
  467. }
  468. }else{
  469. that.$message.error(res.message);
  470. }
  471. })
  472. })
  473. },
  474. // 查询按钮
  475. searchQuery() {
  476. this.queryParam.pageNo = ''
  477. this.getSpltList()
  478. },
  479. searchReset() {
  480. // console.log('>>>>重置')
  481. this.queryParam = {}
  482. this.preDeliveryDate = []
  483. this.getSpltList()
  484. },
  485. // 推送
  486. push() {},
  487. // 导入
  488. importData() {},
  489. // 新增
  490. openClothesAdd() {
  491. console.log('新增-装箱单 成衣')
  492. this.$refs.clothesAddDrawer.visible = true
  493. },
  494. // --------------------------------------
  495. // 操作 附件上传
  496. accessoryUpload() {},
  497. // 操作 提交
  498. submit(record) {
  499. SubmitList({id:record.id}).then(res =>{
  500. if (res.success) {
  501. record.status=1;
  502. this.$message.success('提交成功');
  503. }else{
  504. this.$message.error(res.message);
  505. }
  506. })
  507. },
  508. //操作 取消提交
  509. cancelSubmit(record){
  510. cancelSubmitList({id:record.id}).then(res =>{
  511. if (res.success) {
  512. record.status=0;
  513. this.$message.success('取消提交成功');
  514. }else{
  515. this.$message.error(res.message);
  516. }
  517. })
  518. },
  519. // 操作 详情
  520. details(record) {
  521. spltListId({id:record.id}).then(res => {
  522. if (res.success) {
  523. var editData = res.result
  524. this.$refs.detailsClothesDrawer.visible = true
  525. this.$refs.detailsClothesDrawer.editDecide = 'edit';
  526. this.$refs.detailsClothesDrawer.dynamicColumns(editData.sizeTables)
  527. this.$refs.detailsClothesDrawer.clothesAdd = {
  528. orderNum:editData.orderNumber,
  529. styleNum:editData.itemNumber,
  530. name:editData.productName,
  531. englishProductName:editData.englishProductName,
  532. sizeRange:editData.sizeRange,
  533. customer:editData.customer,
  534. containerCode:editData.containerCode,
  535. containerNo:editData.containerNumber,
  536. note:editData.u8Remarks,
  537. clothesFactory:editData.garmentFactory,
  538. exportInvoiceNo:editData.exportInvoiceNo,
  539. bookNum:editData.shippingOrderNumber,
  540. id:editData.id,
  541. totalBoxes:editData.totalBoxes,
  542. totalGrossWeight:editData.totalGrossWeight,
  543. totalNetWeight:editData.totalNetWeight,
  544. totalVolume:editData.totalVolume,
  545. totalPrice:editData.totalPrice,
  546. depositaryReceiptNo:editData.depositaryReceiptNo,
  547. total:editData.total,
  548. };
  549. this.$refs.detailsClothesDrawer.clothesAddData = editData.syPackingListTailoringItemList
  550. for (var i=0; i<res.result.syPackingListTailoringItemList.length;i++){
  551. var row = res.result.syPackingListTailoringItemList[i];
  552. var sizeTables = row.sizeTables;
  553. for (var j=0; j<sizeTables.length;j++){
  554. row['size-'+sizeTables[j].size] = sizeTables[j].proportion;
  555. }
  556. }
  557. }
  558. })
  559. },
  560. // 操作 编辑
  561. edit(record) {
  562. console.log('编辑')
  563. spltListId({id:record.id}).then(res => {
  564. if (res.success) {
  565. var editData = res.result
  566. this.$refs.clothesAddDrawer.visible = true
  567. this.$refs.clothesAddDrawer.editDecide = 'edit';
  568. this.$refs.clothesAddDrawer.dynamicColumns(editData.sizeTables)
  569. this.$refs.clothesAddDrawer.clothesAdd = {
  570. orderNum:editData.orderNumber,
  571. styleNum:editData.itemNumber,
  572. name:editData.productName,
  573. englishProductName:editData.englishProductName,
  574. sizeRange:editData.sizeRange,
  575. customer:editData.customer,
  576. containerCode:editData.containerCode,
  577. containerNo:editData.containerNumber,
  578. note:editData.u8Remarks,
  579. clothesFactory:editData.garmentFactory,
  580. exportInvoiceNo:editData.exportInvoiceNo,
  581. bookNum:editData.shippingOrderNumber,
  582. id:editData.id,
  583. totalBoxes:editData.totalBoxes,
  584. totalGrossWeight:editData.totalGrossWeight,
  585. totalNetWeight:editData.totalNetWeight,
  586. totalVolume:editData.totalVolume,
  587. totalPrice:editData.totalPrice,
  588. depositaryReceiptNo:editData.depositaryReceiptNo,
  589. total:editData.total
  590. };
  591. this.$refs.clothesAddDrawer.clothesAddData = editData.syPackingListTailoringItemList
  592. for (var i=0; i<res.result.syPackingListTailoringItemList.length;i++){
  593. var row = res.result.syPackingListTailoringItemList[i];
  594. var sizeTables = row.sizeTables;
  595. for (var j=0; j<sizeTables.length;j++){
  596. row['size-'+sizeTables[j].size] = sizeTables[j].proportion;
  597. }
  598. }
  599. }
  600. })
  601. },
  602. // 操作 删除
  603. handleDelete(record) {
  604. console.log('点击删除项id:', record)
  605. this.$nextTick(() => {
  606. if(this.queryParam.pageNo > 1 && this.clothesListData.length === 1){
  607. this.queryParam.pageNo = this.queryParam.pageNo -1
  608. }
  609. deleteSpltList({ id: record }).then(res => {
  610. if (res.success) {
  611. this.getSpltList()
  612. this.$message.success('删除成功')
  613. } else {
  614. this.$message.error('删除成功')
  615. }
  616. })
  617. })
  618. },
  619. onDateChange(value, dateString) {
  620. this.queryParam.stratDate = dateString[0]
  621. this.queryParam.endDate = dateString[1]
  622. },
  623. // --------------------------------------
  624. // ??
  625. modalFormOk() {},
  626. // 选中行
  627. onSelectChange(keys, rows) {
  628. this.selectedRowKeys = keys
  629. this.selectedRows = rows
  630. },
  631. // --------------------------------------
  632. aa() {},
  633. bb() {},
  634. cc() {},
  635. // 分页、排序、筛选变化时触发
  636. handleTableChange(pagination, filters, sorter) {
  637. // console.log('当前页信息>>>>',pagination)
  638. this.queryParam.pageNo = pagination.current
  639. this.getSpltList()
  640. }
  641. },
  642. computed: {
  643. // 导入
  644. importExcelUrl: function() {
  645. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
  646. },
  647. // 选中项
  648. rowSelection() {
  649. return {
  650. onChange: (selectedRowKeys, selectedRows) => {
  651. console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows)
  652. },
  653. getCheckboxProps: record => ({
  654. props: {
  655. disabled: record.title === 'Disabled User',
  656. // Column configuration not to be checked
  657. title: record.title
  658. }
  659. })
  660. }
  661. }
  662. },
  663. mounted() {}
  664. }
  665. </script>
  666. <style lang="less" scoped>
  667. @import '~@assets/less/common.less';
  668. @import '~@assets/less/overwriter.less';
  669. /deep/ .ant-table-thead > tr > th {
  670. text-align: center;
  671. // font-weight: 700;
  672. }
  673. /deep/ .ant-table-tbody {
  674. text-align: center;
  675. }
  676. // /deep/ th.replacecolor {
  677. // background-color: #ccc;
  678. // }
  679. </style>