|
@@ -61,8 +61,8 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // this.fetchList(this.params, this.page);
|
|
|
|
- this.handleRefreshList();
|
|
|
|
|
|
+ this.fetchList(this.params, this.page);
|
|
|
|
+ // this.handleRefreshList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async fetchList(data, params) {
|
|
async fetchList(data, params) {
|
|
@@ -115,10 +115,19 @@ export default {
|
|
this.page.pageNum = 1;
|
|
this.page.pageNum = 1;
|
|
|
|
|
|
this.page.pageSize = 10;
|
|
this.page.pageSize = 10;
|
|
|
|
+ console.log(this,'this-------------------');
|
|
|
|
|
|
- this.checkedList = [];
|
|
|
|
|
|
+ this.$refs.purchaseTable.$refs.superTable.clearSelection();
|
|
|
|
+
|
|
|
|
+ for (const key in this.tabTableDatas) {
|
|
|
|
+ this.tabTableDatas[key] = []
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.$refs.puOrderItemList[0].$refs.superTable.clearSelection();
|
|
|
|
+
|
|
|
|
+ // this.checkedList = [];
|
|
|
|
|
|
- this.checkedTabList = [];
|
|
|
|
|
|
+ // this.checkedTabList = [];
|
|
|
|
|
|
this.primaryResource = {};
|
|
this.primaryResource = {};
|
|
|
|
|
|
@@ -188,9 +197,11 @@ export default {
|
|
await fetchItem(id);
|
|
await fetchItem(id);
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+
|
|
// 获取子表信息
|
|
// 获取子表信息
|
|
handleDetailsData(row) {
|
|
handleDetailsData(row) {
|
|
|
|
|
|
|
|
+
|
|
window.clearTimeout(this.timeOut);
|
|
window.clearTimeout(this.timeOut);
|
|
|
|
|
|
this.timeOut = setTimeout(async () =>{
|
|
this.timeOut = setTimeout(async () =>{
|
|
@@ -465,6 +476,9 @@ export default {
|
|
console.log(this.checkedList, 'this.checkedList');
|
|
console.log(this.checkedList, 'this.checkedList');
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ handleSelectionChange(selection){
|
|
|
|
+ this.checkedList = selection;
|
|
|
|
+ },
|
|
// 子表Select框
|
|
// 子表Select框
|
|
handleTabSelect(selection, row){
|
|
handleTabSelect(selection, row){
|
|
|
|
|
|
@@ -472,6 +486,9 @@ export default {
|
|
|
|
|
|
console.log(this.checkedTabList, 'this.checkedTabList');
|
|
console.log(this.checkedTabList, 'this.checkedTabList');
|
|
},
|
|
},
|
|
|
|
+ handleTabSelectionChange(selection){
|
|
|
|
+ this.checkedTabList = selection;
|
|
|
|
+ },
|
|
// 保留两位小数,补位
|
|
// 保留两位小数,补位
|
|
keepTwoDecimalStr(num) {
|
|
keepTwoDecimalStr(num) {
|
|
|
|
|
|
@@ -582,6 +599,7 @@ export default {
|
|
|
|
|
|
<el-super-table
|
|
<el-super-table
|
|
v-model="tableData"
|
|
v-model="tableData"
|
|
|
|
+ ref="purchaseTable"
|
|
max-height="480"
|
|
max-height="480"
|
|
:dict="dict"
|
|
:dict="dict"
|
|
:columns="tableColumns"
|
|
:columns="tableColumns"
|
|
@@ -593,11 +611,9 @@ export default {
|
|
@pagination="fetchList(params, page)"
|
|
@pagination="fetchList(params, page)"
|
|
@row-dblclick="handleOpenSeeDrawer"
|
|
@row-dblclick="handleOpenSeeDrawer"
|
|
@row-click="handleDetailsData"
|
|
@row-click="handleDetailsData"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
>
|
|
>
|
|
-
|
|
|
|
- <!-- <el-table-column type="selection" width="45" fixed></el-table-column>
|
|
|
|
- <el-table-column type="index" width="50" label="序号"></el-table-column> -->
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="120">
|
|
<el-table-column fixed="right" label="操作" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -637,15 +653,6 @@ export default {
|
|
|
|
|
|
</el-super-table>
|
|
</el-super-table>
|
|
|
|
|
|
- <!-- <pagination
|
|
|
|
- v-show="page.total>0"
|
|
|
|
- :total="page.total"
|
|
|
|
- :page.sync="page.pageNum"
|
|
|
|
- :limit.sync="page.pageSize"
|
|
|
|
- :page-sizes="[10,20,50,100,500,1000]"
|
|
|
|
- @pagination="fetchList(params, page)"
|
|
|
|
- />
|
|
|
|
- -->
|
|
|
|
<div style="position: relative; padding-top: 10px;" v-loading="tabLoading">
|
|
<div style="position: relative; padding-top: 10px;" v-loading="tabLoading">
|
|
<el-row style="position: absolute; top: 30px; right: 20px;z-index: 10;">
|
|
<el-row style="position: absolute; top: 30px; right: 20px;z-index: 10;">
|
|
<el-button
|
|
<el-button
|
|
@@ -664,6 +671,7 @@ export default {
|
|
>
|
|
>
|
|
<el-super-table
|
|
<el-super-table
|
|
v-model="tabTableDatas[column.key]"
|
|
v-model="tabTableDatas[column.key]"
|
|
|
|
+ :ref="column.key"
|
|
max-height="200"
|
|
max-height="200"
|
|
:dict="dict"
|
|
:dict="dict"
|
|
:columns="column.tableColumns"
|
|
:columns="column.tableColumns"
|
|
@@ -671,6 +679,8 @@ export default {
|
|
:checkbox="setTabSelectable()"
|
|
:checkbox="setTabSelectable()"
|
|
:iconOperation="false"
|
|
:iconOperation="false"
|
|
@select="handleTabSelect"
|
|
@select="handleTabSelect"
|
|
|
|
+ @selection-change="handleTabSelectionChange"
|
|
|
|
+
|
|
>
|
|
>
|
|
<!-- <el-table-column
|
|
<!-- <el-table-column
|
|
v-if=" tabName === 'puOrderItemList'"
|
|
v-if=" tabName === 'puOrderItemList'"
|