index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. <!-- 采购订单修订—— 列表 -->
  2. <script>
  3. import { TableColumns, SearchColumns, TabColumns, SelectColumns } from "./column";
  4. import orderApi from "@/api/business/purchase/purchase-order";
  5. import {
  6. initPage,
  7. initParams,
  8. // initDicts,
  9. } from "@/utils/init/index.js";
  10. import { initDicts } from "@/utils/init.js";
  11. const allColumns = [...TableColumns, ...SearchColumns];
  12. TabColumns.forEach(column =>{
  13. allColumns.push(...column.tableColumns)
  14. })
  15. export default {
  16. name: "PuchaseOrder",
  17. // dicts: initDicts(SelectColumns),
  18. dicts: [...initDicts(allColumns), 'oa_templete_id'],
  19. components: {
  20. AddDrawer: () => import('./add/index.vue'),
  21. SeeDrawer: () => import('./see/index.vue'),
  22. EditDrawer: () => import('./edit/index.vue'),
  23. PurchaseReturnDrawer: () => import('./purchaseReturn/index.vue'),
  24. ElSuperTable: () => import("@/components/super-table/index.vue"),
  25. ElSuperSearch: () => import("@/components/super-search/index.vue"),
  26. Retrieve: () => import("@/components/Retrieve/index.vue"),
  27. ZpButton: () => import("./zhuan-pai/index.vue"),
  28. },
  29. data() {
  30. const initTabColumns = () => TabColumns;
  31. return {
  32. loading: false,
  33. tabLoading:false,
  34. page: { pageNum: 1, pageSize: 10, total: 0 },
  35. searchColumns: SearchColumns,
  36. params: initParams(SearchColumns),
  37. tableColumns: TableColumns,
  38. tableData: [],
  39. tabColumns: initTabColumns(),
  40. tabName: "puOrderItemList",
  41. tabTableDatas: {
  42. puOrderItemList: [],
  43. puOrderExecuteList: [],
  44. },
  45. checkedList: [],
  46. // 子表Select
  47. checkedTabList: [],
  48. // 主表点击信息
  49. primaryResource:{},
  50. timer:300,
  51. timeOut:null,
  52. size:'mini',
  53. };
  54. },
  55. computed: {
  56. $dicts: {
  57. get: function () {
  58. return this.dict.type;
  59. },
  60. },
  61. tabHeight:{
  62. get(){
  63. return `${this.tabTableDatas['puOrderItemList'].length ?
  64. (this.tabTableDatas['puOrderItemList'].length > 8 ? 500 :
  65. (this.tabTableDatas['puOrderItemList'].length *50) +170)
  66. : 120}px`
  67. },
  68. set(){}
  69. }
  70. },
  71. created() {
  72. if(this.$route.query.billCode) this.params.orderCode = this.$route.query.billCode
  73. this.fetchList(this.params, this.page);
  74. // this.handleRefreshList();
  75. },
  76. methods: {
  77. async fetchList(data, params) {
  78. try {
  79. this.loading = true;
  80. params['isAsc'] = 'desc';
  81. params['orderByColumn'] = 'updateTime';
  82. const { code, msg, rows, total } = await orderApi.list(data, params);
  83. if (code === 200) {
  84. this.page.total = total;
  85. this.tableData = rows;
  86. }
  87. } catch (err) {
  88. //
  89. } finally {
  90. this.loading = false;
  91. for (const key in this.tabTableDatas) {
  92. this.tabTableDatas[key] = [];
  93. }
  94. }
  95. },
  96. async handleDownload(){
  97. console.log(this.params,'条件');
  98. this.download('/pu/order/export', {...this.params}, `采购订单维护${new Date().getTime()}.xlsx`);
  99. // try {
  100. // this.loading = true;
  101. // orderApi.orderExport({...this.params}).then(res=>{
  102. // const isBlob = blobValidate(res);
  103. // if (isBlob) {
  104. // const blob = new Blob([res]);
  105. // saveAs(blob, `采购订单维护${new Date().getTime()}.xlsx`);
  106. // }
  107. // })
  108. // } catch (error) {
  109. // }finally{
  110. // this.loading = false;
  111. // }
  112. },
  113. async jumpFlow(row){
  114. const {name} = this.$store.state.user;
  115. try {
  116. let {code,msg,oaUrl} = await orderApi.toOA(name,row.flowId);
  117. if(code == 200){
  118. window.open(oaUrl)
  119. }
  120. } catch (error) {
  121. }finally{
  122. }
  123. },
  124. setSelectable(){
  125. return true
  126. },
  127. setTabSelectable(){
  128. if(this.tabName === 'puOrderItemList'){
  129. return true
  130. }
  131. return false
  132. },
  133. // 刷新操作
  134. handleRefreshList() {
  135. this.page.pageNum = 1;
  136. this.page.pageSize = 10;
  137. this.$refs.purchaseTable.$refs.superTable.clearSelection();
  138. for (const key in this.tabTableDatas) {
  139. this.tabTableDatas[key] = []
  140. }
  141. this.$refs.puOrderItemList[0].$refs.superTable.clearSelection();
  142. // this.checkedList = [];
  143. // this.checkedTabList = [];
  144. this.primaryResource = {};
  145. this.fetchList(this.params, this.page);
  146. },
  147. // 查询操作
  148. handleQueryList() {
  149. let {date} = this.params;
  150. this.params.startDate = date ? date[0] :'';
  151. this.params.endDate = date ? date[1] : '';
  152. this.fetchList(this.params, this.page);
  153. },
  154. // 重置操作
  155. handleResetList() {
  156. this.page.pageNum = 1;
  157. this.page.pageSize = 10;
  158. this.params = initParams(SearchColumns);
  159. this.fetchList(this.params, this.page);
  160. },
  161. handleTabClick() { },
  162. // 新增
  163. handleOpenAddDrawer(copyVal) {
  164. const { setVisible, setCopyParams } = this.$refs.addDrawerFef;
  165. setVisible(true,(copyVal.id && copyVal.id != '') ? true :false);
  166. copyVal.id && copyVal.id != '' && setCopyParams(copyVal.id);
  167. },
  168. // 复制
  169. handleCopy() {
  170. this.handleOpenAddDrawer(this.checkedList[0]);
  171. },
  172. // 查看
  173. async handleOpenSeeDrawer(row) {
  174. window.clearInterval(this.timeOut);
  175. const { id } = row;
  176. const { setVisible, fetchItem } = this.$refs.seeDrawerRef;
  177. await setVisible(true);
  178. await fetchItem(id);
  179. },
  180. // 编辑、修订
  181. async handleOpenEditDrawer(row) {
  182. const { id } = row;
  183. const { setVisible, fetchItem } = this.$refs.editDrawerRef;
  184. await setVisible(true);
  185. await fetchItem(id);
  186. },
  187. // 获取子表信息
  188. handleDetailsData(row) {
  189. window.clearTimeout(this.timeOut);
  190. this.timeOut = setTimeout(async () =>{
  191. try {
  192. this.tabLoading = true;
  193. this.primaryResource = row;
  194. this.checkedTabList = [];
  195. const { code, msg, data } = await orderApi.details(row.id);
  196. if (code === 200) {
  197. // 物料信息:puOrderItemList 执行结果:puOrderExecuteList
  198. for (const key in this.tabTableDatas) {
  199. this.tabTableDatas[key] = data[key];
  200. }
  201. }
  202. } catch (err) {}
  203. finally{
  204. this.tabLoading = false;
  205. }
  206. },this.timer)
  207. },
  208. // 操作提示弹窗
  209. handleConfirmTips(success){
  210. this.$confirm('是否继续此操作?', '提示', {
  211. confirmButtonText: '确定',
  212. cancelButtonText: '取消',
  213. type: 'warning'
  214. }).then(() => {
  215. success();
  216. }).catch(() => {
  217. });
  218. },
  219. // 删除操作
  220. handleDeleteList(row) {
  221. try {
  222. this.loading = true;
  223. this.handleConfirmTips(async()=>{
  224. const { id } = row;
  225. const { code } = await orderApi.remove(id);
  226. if (code === 200) {
  227. this.handleRefreshList();
  228. }
  229. })
  230. } catch (err) {
  231. //
  232. } finally {
  233. this.loading = false;
  234. }
  235. },
  236. // 批量提交
  237. handleBatchSubmit(){
  238. let inconformity = this.checkedList.filter(row => !((row.status == '0' || row.status == '3' || row.status == '9') && row.isEnd === 'N'));
  239. if(!inconformity.length && this.checkedList.length){
  240. let puOrderIds = this.checkedList.map( item => Number(item.id));
  241. this.fetchSubmit(puOrderIds);
  242. }else{
  243. this.$notify({
  244. title: '警告',
  245. message: '当前选中存在不满足提交条件的数据!',
  246. type: 'warning'
  247. });
  248. }
  249. },
  250. // 提交
  251. handleSubmit(row) {
  252. let puOrderIds = [Number(row.id)];
  253. this.fetchSubmit(puOrderIds);
  254. },
  255. fetchSubmit(puOrderIds){
  256. let _this = this;
  257. this.handleConfirmTips(async()=>{
  258. try {
  259. _this.loading = true;
  260. let { code,msg } = await orderApi.submit({ puOrderIds,checkAmount:true});
  261. console.log(code,'code');
  262. if (code == 200) {
  263. _this.handleRefreshList();
  264. }else if(code == 10000){
  265. _this.$alert(msg, '提示', {
  266. showCancelButton: true,
  267. confirmButtonText: '继续提交',
  268. cancelButtonText: '取消',
  269. beforeClose: async(action, instance, done) => {
  270. if (action === 'confirm') {
  271. instance.confirmButtonLoading = true;
  272. instance.confirmButtonText = '执行中...';
  273. try {
  274. let { code,msg } = await orderApi.submit({ puOrderIds,checkAmount:false});
  275. if(code == 200){
  276. done();
  277. _this.handleRefreshList();
  278. }
  279. } catch (error) {
  280. instance.confirmButtonText = "确认";
  281. }finally{
  282. instance.confirmButtonLoading = false;
  283. }
  284. } else {
  285. done();
  286. }
  287. }
  288. });
  289. }
  290. } catch (error) {}
  291. finally{
  292. this.loading = false;
  293. }
  294. })
  295. },
  296. //流程收回
  297. async handleBack(row){
  298. console.log('xxxx',this.dict.type)
  299. try {
  300. const { msg, code } = await orderApi.oaBack({
  301. fdTemplateId: this.dict.type.oa_templete_id.find(item => {
  302. return item.label == "采购订单"
  303. }).value,
  304. fdId: row.flowId,
  305. billCode: row.code,
  306. billMaker: row.createBy
  307. });
  308. if (code === 200) {
  309. this.$emit("success");
  310. this.$notify.success(msg);
  311. }
  312. } catch (err) {
  313. console.error(err);
  314. } finally {
  315. this.fetchList(this.params, this.page);
  316. }
  317. },
  318. // 判断“整单退回”按钮
  319. judgeIsAllReturn() {
  320. if (this.checkedList.length == 1) {
  321. // 非手工、状态:自由/驳回
  322. if (this.judgeIsOption('return',this.checkedList[0])) {
  323. // if (this.checkedList[0].source != 3 &&
  324. // (this.checkedList[0].status == 0 || this.checkedList[0].status == 3)
  325. // ) {
  326. return false
  327. }
  328. }
  329. return true;
  330. },
  331. // 整单退回
  332. handleAllReturn() {
  333. this.handleReturn(this.checkedList[0].id,[]);
  334. },
  335. // 判断“行退回”按钮
  336. judgeIsLineReturn() {
  337. if (this.checkedTabList.length == 1) {
  338. // 主信息:非手工、状态:自由/驳回
  339. if(this.judgeIsOption('return',this.primaryResource)){
  340. // if(this.primaryResource.source != 3 &&
  341. // (this.primaryResource.status == 0 || this.primaryResource.status == 3) ){
  342. return false
  343. }
  344. }
  345. return true;
  346. },
  347. // 行退回
  348. handleLineReturn(){
  349. let ids = this.checkedTabList.map(checked => checked.id);
  350. console.log(ids,'行退回ids');
  351. this.handleReturn(this.primaryResource.id,ids);
  352. },
  353. // 退回接口
  354. handleReturn(id,documentIds){
  355. this.$prompt('请输入退回原因', '提示', {
  356. confirmButtonText: '确定',
  357. cancelButtonText: '取消',
  358. inputPattern: /\s*\S+?/,
  359. inputErrorMessage: '退回原因不能为空'
  360. }).then(async ({ value }) => {
  361. let data = {
  362. id:Number(id),
  363. documentIds:documentIds.map(ids =>Number(ids)),
  364. baskCause: value,
  365. };
  366. console.log(data);
  367. try {
  368. let { code, msg } = await orderApi.documentsReturn(data);
  369. if (code === 200) {
  370. this.handleRefreshList();
  371. }
  372. } catch (error) {
  373. console.log(error,'error------------');
  374. }
  375. }).catch(() => { });
  376. },
  377. // 判断是否满足整单关闭
  378. judgeIsAllClose() {
  379. if (this.checkedList.length == 1) {
  380. // if (this.checkedList[0].status == 0) {
  381. if (this.judgeIsOption('allClose',this.checkedList[0])) {
  382. // 未审批状态下整单关闭
  383. return false
  384. }
  385. }
  386. return true;
  387. },
  388. // 整单关闭
  389. handleAllClose() {
  390. // 未审批状态下整单关闭
  391. try {
  392. this.handleConfirmTips(async() =>{
  393. let puOrderIds = this.checkedList.map(order => Number(order.id));
  394. let { code } = await orderApi.close({ puOrderIds });
  395. if (code === 200) {
  396. this.handleRefreshList();
  397. }
  398. })
  399. } catch (error) { }
  400. },
  401. // 付款协议
  402. async handlePaymentRequest(){
  403. // name:工号
  404. try {
  405. let {code,msg} = await orderApi.payRequest();
  406. if(code == 200){
  407. msg.replace(/\/n/g,'');
  408. let url = `uclient://start/http://172.16.100.2:8081?ssoKey=${msg}&uiloader=nc.uap.lfw.applet.PortalUILoader&nodeId=40040407`
  409. window.location.href = url;
  410. }
  411. } catch (error) {}
  412. },
  413. // 退货
  414. async handlePurchaseReturn(){
  415. const { id } = this.checkedList[0];
  416. const { setVisible, fetchStorage } = this.$refs.PurchaseReturnDrawerRef;
  417. await setVisible(true);
  418. await fetchStorage(id);
  419. },
  420. // 主表Select框
  421. handleSelect(selection, row) {
  422. this.checkedList = selection;
  423. console.log(this.checkedList, 'this.checkedList');
  424. },
  425. handleSelectionChange(selection){
  426. this.checkedList = selection;
  427. },
  428. // 子表Select框
  429. handleTabSelect(selection, row){
  430. this.checkedTabList = selection;
  431. console.log(this.checkedTabList, 'this.checkedTabList');
  432. },
  433. handleTabSelectionChange(selection){
  434. this.checkedTabList = selection;
  435. },
  436. // 保留两位小数,补位
  437. keepTwoDecimalStr(num) {
  438. if(num){
  439. const result = Number(num.toString().match(/^\d+(?:\.\d{0,2})?/));
  440. let s = result.toString();
  441. let rs = s.indexOf('.');
  442. if (rs < 0) {
  443. rs = s.length;
  444. s += '.';
  445. }
  446. while (s.length <= rs + 2) {
  447. s += '0';
  448. }
  449. return s;
  450. }else{
  451. return '';
  452. }
  453. },
  454. judgeIsOption(type,source){
  455. // status: 0=自由态,1=审批中,2=已审核,3=已驳回 4=提交中 9=已回退
  456. // source: 1=自动协议直采,2=协议直采,3=手工
  457. // isEnd:整单关闭标识
  458. switch(type){
  459. case 'edit':
  460. return (source.status == '0' || source.status == '3' || source.status == '9') && source.isEnd === 'N';
  461. case 'revise':
  462. return source.status == '2' && source.isEnd === 'N';
  463. case 'del':
  464. return (source.status == '0' || source.status == '3' || source.status == '9') && source.source == '3' && source.isEnd === 'N';
  465. case 'submit':
  466. return (source.status == '0' || source.status == '3' || source.status == '9') && source.isEnd === 'N';
  467. case 'allClose':
  468. return source.status == 0 && source.isEnd === 'N';
  469. case 'return':
  470. return source.source != 3 && source.isEnd === 'N' &&
  471. (source.status == 0 || source.status == 3 || source.status == '9');
  472. default:
  473. return false;
  474. }
  475. },
  476. handelRetrieve(row){
  477. let { status, flowId, code,createBy } = row;
  478. return {
  479. status,
  480. fdId:flowId,
  481. fdTemplateId: this.dict.type.oa_templete_id.find(item => {
  482. return item.label == "采购订单"
  483. }).value,
  484. billCode:code,
  485. billMaker:createBy,
  486. }
  487. },
  488. }
  489. };
  490. </script>
  491. <template>
  492. <el-card
  493. v-loading="loading"
  494. style="width: calc(100% - 24px); height: 100%; margin: 10px;padding: 10px;"
  495. :body-style="{ padding: 0 }"
  496. >
  497. <SeeDrawer ref="seeDrawerRef"></SeeDrawer>
  498. <AddDrawer ref="addDrawerFef" @close="handleRefreshList"></AddDrawer>
  499. <EditDrawer ref="editDrawerRef" @close="handleRefreshList"></EditDrawer>
  500. <PurchaseReturnDrawer ref="PurchaseReturnDrawerRef" @close="handleRefreshList"></PurchaseReturnDrawer>
  501. <el-super-search
  502. v-model="params"
  503. :size="'mini'"
  504. :dict="dict"
  505. :columns="searchColumns"
  506. @reset="handleResetList"
  507. @submit="handleQueryList"
  508. ></el-super-search>
  509. <!-- 操作 -->
  510. <el-row :gutter="24" type="flex" justify="end" style="margin: 20px 0;">
  511. <el-col :span="24" style="text-align: right;">
  512. <el-button :size="size" type="primary" @click="handleOpenAddDrawer"
  513. v-hasPermi="['material:order:add']">新增</el-button>
  514. <el-button-group style="margin-left: 10px">
  515. <el-button type="primary" :size="size" :disabled="checkedList.length != 1" @click="handleCopy">复制</el-button>
  516. <el-button type="primary" :size="size" @click="handleBatchSubmit">批量提交</el-button>
  517. </el-button-group>
  518. <el-button-group style="margin-left: 10px" :key="checkedList.length + 1">
  519. <el-button type="primary" :size="size" @click="handleAllReturn" :disabled="judgeIsAllReturn()">整单退回</el-button>
  520. <!-- <el-button type="primary" :size="size" @click="handleAllClose" :disabled="judgeIsAllClose()">整单关闭</el-button> -->
  521. </el-button-group>
  522. <el-button-group style="margin:0 10px">
  523. <!-- <el-button size="mini"
  524. :disabled="!(checkedList.length == 1 && checkedList[0].deliveryStatus == '0')"
  525. :key="checkedList.length"
  526. @click="handlePurchaseReturn"
  527. >采购退货</el-button> -->
  528. <el-button type="primary" size="mini" @click="handlePaymentRequest">付款申请</el-button>
  529. <el-button
  530. type="primary"
  531. size="mini"
  532. @click="handleDownload"
  533. >批量导出</el-button>
  534. </el-button-group>
  535. <el-button-group>
  536. <zp-button
  537. :size="size"
  538. :select-data="checkedList"
  539. @success="handleQueryList"
  540. >
  541. </zp-button>
  542. </el-button-group>
  543. </el-col>
  544. </el-row>
  545. <div style="display: flex;height:420px;">
  546. <el-super-table
  547. class="purchaseTable"
  548. v-model="tableData"
  549. ref="purchaseTable"
  550. :dict="dict"
  551. :columns="tableColumns"
  552. :selectable="setSelectable"
  553. index
  554. checkbox
  555. pagination
  556. showSummary
  557. :page="page"
  558. convenitentOperation
  559. @pagination="fetchList(params, page)"
  560. @row-dblclick="handleOpenSeeDrawer"
  561. @row-click="handleDetailsData"
  562. @selection-change="handleSelectionChange"
  563. @select="handleSelect"
  564. >
  565. <el-table-column fixed="right" label="操作" width="120">
  566. <template slot-scope="scope">
  567. <el-button
  568. v-if="judgeIsOption('revise',scope.row)"
  569. type="text"
  570. size="small"
  571. @click.stop="handleOpenEditDrawer(scope.row)"
  572. v-hasPermi="['material:order:edit']">
  573. 修订
  574. </el-button>
  575. <el-button
  576. v-if="judgeIsOption('edit',scope.row)"
  577. type="text"
  578. size="small"
  579. @click.stop="handleOpenEditDrawer(scope.row)"
  580. v-hasPermi="['material:order:edit']">
  581. 编辑
  582. </el-button>
  583. <!-- 0=自由态,1=审批中,2=已审核,3=已驳回 4=提交中-->
  584. <el-button
  585. v-if="judgeIsOption('del',scope.row)"
  586. type="text"
  587. size="small"
  588. @click.stop="handleDeleteList(scope.row)"
  589. v-hasPermi="['material:order:remove']"
  590. >删除</el-button>
  591. <el-button
  592. v-if="judgeIsOption('submit',scope.row)"
  593. type="text"
  594. size="mini"
  595. v-hasPermi="['material:order:toOa']"
  596. @click.stop="handleSubmit(scope.row)"
  597. >提交</el-button>
  598. <el-button
  599. v-if="scope.row.status == '1'"
  600. type="text"
  601. size="mini"
  602. @click.stop="handleBack(scope.row)"
  603. >收回</el-button>
  604. <el-button
  605. v-if="scope.row.flowId && scope.row.flowId !== '' && scope.row.status !== '9'"
  606. type="text"
  607. size="mini"
  608. @click.stop="jumpFlow(scope.row)"
  609. >流程跳转</el-button>
  610. <!-- <Retrieve :data="handelRetrieve(scope.row)" @success="handleQueryList"></Retrieve> -->
  611. </template>
  612. </el-table-column>
  613. </el-super-table>
  614. </div>
  615. <div style="position: relative; padding-top: 10px;" v-loading="tabLoading">
  616. <el-row style="position: absolute; top: 30px; right: 20px;z-index: 10;">
  617. <el-button
  618. size="mini"
  619. @click="handleLineReturn"
  620. :disabled="judgeIsLineReturn()"
  621. >行退回</el-button>
  622. </el-row>
  623. <el-tabs
  624. v-model="tabName"
  625. @tab-click="handleTabClick"
  626. style="width: 100%;padding: 20px 10px;">
  627. <el-tab-pane
  628. v-for="(column, index) in tabColumns"
  629. :key="index"
  630. :label="column.title"
  631. :name="column.key"
  632. >
  633. <div
  634. :style="{
  635. height:tabHeight,
  636. display:'flex'
  637. }"
  638. >
  639. <el-super-table
  640. v-model="tabTableDatas[column.key]"
  641. :ref="column.key"
  642. :dict="dict"
  643. :columns="column.tableColumns"
  644. :selectable="setTabSelectable"
  645. :checkbox="setTabSelectable()"
  646. convenitentOperation
  647. showSummary
  648. @select="handleTabSelect"
  649. @selection-change="handleTabSelectionChange"
  650. >
  651. </el-super-table>
  652. </div>
  653. </el-tab-pane>
  654. </el-tabs>
  655. </div>
  656. </el-card>
  657. </template>
  658. <style lang="scss">
  659. </style>